// IUserDao
package org.yate.oa.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.yate.oa.dao.IBaseMapperDao;
import org.yate.oa.model.ModRefPrivilegeEntity;

/**
 * @author Yate
 * @date 2013年9月23日
 * @description TODO
 * @version 1.0
 */
@Repository(value = "modRefPrivilegeMapper")
@CacheNamespace(size = 512)
public interface ModRefPrivilegeMapper extends
		IBaseMapperDao<ModRefPrivilegeEntity, Long> {
	ModRefPrivilegeEntity checkPrivilege(@Param(value = "uid") long userId,
			@Param(value = "p_url") String p_url,
			@Param(value = "m_url") String m_url);

	List<ModRefPrivilegeEntity> getPrivileges(
			@Param(value = "uid") long userId, @Param(value = "uid") String url);

}
